{include file=$Config.ModulesFolder|cat:$Config.BlocksFolder|cat:"block.page_title.tpl" title=$PageTitle}

{include file=$Config.ModulesFolder|cat:$Config.BlocksFolder|cat:"block.errors.tpl" ErrorMessages=$ErrorMessages}

<script language="javascript">
function writeinspan(id, value)
{ldelim}  document.getElementById(id).innerHTML=value;
{rdelim}
</script>
<center>
<form method="post" action="" name="tell_friend">
<input type="hidden" name="task" value="send">
<table class="form">
<tr>
  <td class="name">{$lang.tellFriend.yourName} *: </td>
  <td class="value"><input type="text" name="name" maxlength="50" value="{$POST.name}" onChange="writeinspan('your_name', this.value);" onKeyUp="writeinspan('your_name', this.value);" /></td>
</tr>
<tr>
  <td class="name">{$lang.tellFriend.yourEmail} *: </td>
  <td class="value"><input type="text" name="email" maxlength="50" value="{$POST.email}" onChange="writeinspan('your_email', this.value);" onKeyUp="writeinspan('your_email', this.value);" /></td>
</tr>
<tr>
  <td class="name">{$lang.tellFriend.friendsName} *: </td>
  <td class="value"><input type="text" name="friend_name" maxlength="50" value="{$POST.friend_name}" onChange="writeinspan('friend_name', this.value);" onKeyUp="writeinspan('friend_name', this.value);" /></td>
</tr>
<tr>
  <td class="name">{$lang.tellFriend.friendsEmail} *: </td>
  <td class="value"><input type="text" name="friend_email" maxlength="50" value="{$POST.friend_email}" /></td>
</tr>
<tr>
  <td class="name">{$lang.tellFriend.enterSecretCode}</td>
  <td class="value">
    <img src="{validate_url url=$SITEPATH url1='showcode' url2=$Config.webPageFileType url3='?sessid=' url4=$session}" width="{$Config.secureImageWidth}" height="{$Config.secureImageHeight}" border="0" align="absmiddle" />
    <input class="code" type="text" name="code" maxlenght="{$Config.secureImageSymbols}" />
  </td>
</tr>
</table>
</center>
</form>
<br />
<center>
<input type="submit" class="button" value="{$lang.tellFriend.submitButton}" onclick="document.forms['tell_friend'].submit();" />
</center>

<br /><br />
<center>
{$lang.tellFriend.thankYouForRecommending}<br />
{$lang.tellFriend.yourEmailWillLookLike}:<br />
<table class="emailExample">
 <tr>
  <td class="main">{$mailBody|unescape}</td>
 </tr>
</table>
</center>
